//
// Created by Administrator on 2024/8/9.
//
#ifndef CPP_STUDY_ALGO_H
#define CPP_STUDY_ALGO_H

#include <cassert>
#include <iostream>
#include <vector>

#include <algorithm>

using namespace std;

void case5()
{
    vector<int> v = {3,5,1,7,10,99,42};
    auto print = [](const auto& x)
    {
        cout << x << ",";
    };
    // total sort
    std::sort(begin(v),end(v));
    cout<<"111"<<endl;
    for_each(cbegin(v), cbegin(v),print);
    cout<<"222"<<endl;
    cout <<endl;
}
#endif //CPP_STUDY_ALGO_H
